package prsnl.daan.ledbak.engine;

import java.awt.Color;

import prsnl.daan.ledbak.formations.Formation;


public class Screen extends Bitmap{
	
	private Viewport	viewport;
	
	public Screen( int width, int height ) {
		super( width, height );
		
		viewport = new Viewport( width, height - 32 );
		
		drawBorder( Color.GREEN.getRGB( ) );
	}
	
	public void render( Formation formation ) {
		fill( 0, 0, width, height, 0xFF000000 );
		
		viewport.render( formation );
		
		draw( viewport, 0, 0 );
	}
}
